package com.example.demo.controller.req;

import com.example.demo.controller.exception.BizException;
import lombok.Data;
import org.springframework.util.StringUtils;

import java.io.Serializable;

@Data
public class BaseRequest implements Serializable, Validate {

    private String activeCode;

    @Override
    public void validate() {
        if (StringUtils.isEmpty(activeCode)) {
            throw new BizException("激活码字段缺失");
        }
    }
}
